//
//  YuVerifyButton.m
//  HuLaQuan
//
//  Created by hok on 1/14/16.
//  Copyright © 2016 Jianghao. All rights reserved.
//

#import "YuVerifyButton.h"

@implementation YuVerifyButton

- (void)drawRect:(CGRect)rect {
    // Drawing code
    /* CGRect bounds = self.bounds;
     
     
     UIRectFill(bounds);
     
     [[UIBezierPath bezierPathWithRoundedRect:rect cornerRadius:8.0] addClip];*/
    
    UIBezierPath *path = [UIBezierPath bezierPath];
    [path moveToPoint:CGPointMake(0 , 5)];
    [path addLineToPoint:CGPointMake(0, self.bounds.size.height - 5.)];
    [UIColorFromRGBA(kMainTextGrayColor,1.0) setStroke];
    [path stroke];
    
}
- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    
    if (self) {
        
        
     //   self.titleLabel.font = [UIFont systemFontOfSize:11];
        
        
        
      /*  NSMutableAttributedString *str = [self.titleLabel.attributedText mutableCopy];
        
        [str addAttribute:NSFontAttributeName value:[UIFont fontWithName:FONT_NAME size:11] range:NSMakeRange(0, [str length])];
        [str addAttribute:NSForegroundColorAttributeName value:UIColorFromRGBA(kMainTextGrayColor,1.0) range:NSMakeRange(0, [str length])];
        [self setAttributedTitle:str forState:UIControlStateNormal];*/
    
        [self setTitleColor:UIColorFromRGBA(kMainTextGrayColor,1.0) forState:UIControlStateNormal];
        
    }
    return self;
}
- (void)awakeFromNib
{
    
}

@end
